package com.cls.business.service;

import com.cls.business.entity.DraftAchievement;

import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 拟定的研究成果 Service接口
 *
 * @author slx
 * @date 2020-12-02 14:26:28
 */
public interface IDraftAchievementService extends IService<DraftAchievement> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param draftAchievement draftAchievement
     * @return PageInfo<DraftAchievement>
     */
    PageInfo<DraftAchievement> findDraftAchievements(QueryRequest request, DraftAchievement draftAchievement);

    /**
     * 查询（所有）
     *
     * @param draftAchievement draftAchievement
     * @return List<DraftAchievement>
     */
    List<DraftAchievement> findDraftAchievements(DraftAchievement draftAchievement);

    /**
     * 新增
     *
     * @param draftAchievement draftAchievement
     */
    void createDraftAchievement(DraftAchievement draftAchievement);

    /**
     * 修改
     *
     * @param draftAchievement draftAchievement
     */
    void updateDraftAchievement(DraftAchievement draftAchievement);

    /**
     * 删除
     *
     * @param ids ids
     */
    void deleteDraftAchievements(String[] ids);
}
